<?php

$meinv = imageCreateFrompng('meinv.png');
$logo = imageCreateFromjpeg('logo.jpg');


$lw = imagesx($logo);
$lh = imagesy($logo);


imagecopyresized ( $meinv , $logo , 0 , 0 , 0 , 0 ,  $lw/2 , $lh/2 , $lw , $lh );

// 6  保存/输出
header("Content-type: image/png");
// imagepng($src,"./img/".uniqid().'.png');
imagepng($meinv);

